<?php defined('SYSPATH') or die('No direct script access.');

/**
 * 路由
 */
class St_Route{

    /**
     * 检查当前地址匹配的路由
     * @return array|null
     * @throws Kohana_Exception
     * User: netman
     * Date: 2023/11/8 11:51
     */
    public static function check_route()
    {
        $uri = trim(Request::detect_uri(),'/');
        $route = Route::all();
        $processed_uri = Request::process_uri($uri,$route);
        return $processed_uri;

    }
    

}